package com.scau.clothes.service;

import com.scau.clothes.dao.OrderClothesDao;
import com.scau.clothes.pojo.OrderClothes;

import java.util.List;

//实际为OrderClothes
public interface CartService extends OrderClothesDao {
    /**
     *
     * @param id
     * @return 返回购物车中的记录
     */
    List<OrderClothes> getOCByUserIdInRedis(int id);

    /**
     *
     * @param userId
     *
     */

    void addClothesToCartByUserId(int userId,int clothesId,int num);

    /**
     * 减少购物车中的数量，每次减少一件
     * @param userId
     * @param clothesId
     */
    void deleteClothesFromCartBy1(int userId,int clothesId);
}
